Support for shutdown grace period in netty clients#54
Support for shutdown grace period in netty clients#54therepanic wants to merge 1 commit intospring-projects:mainfrom
Conversation
38bada8 to
ca272ae
Compare
|
Looks good. Two questions (both could be deferred to future work):
|
I think it's a good idea to develop in the future. I guess the grace period for the client implies a grace period for each channel However, making a grace period for all channels simultaneously and for individual channels is a good idea that can be developed in the future Perhaps this can be put into two separate parameters as well I suppose that as you said, in the channel factory it will be possible to delete all channels with 1 timeout in parallel in the future. |
|
I'm a bit worried that leaving the timeout as a |
|
We can now rename shutdownGracePeriod to shutdownGracePeriodPerRequest, thus ensuring backward compatibility and then we won't have to worry if (and I guess when) we want to do a parallel shutdown grace period |
|
I don't understand what "per request" means. Isn't it "per channel" (in which case the fact that it is a property of a |
|
Yes, I apologize, I mean “perChannel”. So the current shutdownGracePeriod that I created we will rename directly now to shutdownGracePeriodPerChannel. This will solve any problems that may arise if we decide to create a parallel shutdownGracePeriod |
|
OK, then the name doesn't need to change (because it's a property of a channel already). I don't think that solves any problems. Still thinking. If you have any ideas about how to implement the "per channel" behaviour then feel free to try them out. |
|
I assume that by “per channel” we mean setting a specific We could overload the That is, my main point is to introduce a class for the settings for the channel to be set when creating the channel in |
|
This seems kind of stale now. It might be better to close it and start again? |
|
I guess it's worth updating the changes made in this PR and doing a rebase? Pending a decision though, how do we deal with this problem in the best way possible |
|
@onobc has some changes planned to the channel factory. I think it might be best to regroup when they come through. |
|
Hi @panic08 , Thank you for that initial contribution. Things have changed quite a bit since the initial PR and we wanted to get this in for the |
This PR refers to #12
Here we give opportunity to set a specific shutdown grace period in properties. If the customer channel is not fulfilled within this time, it will be shutdowned now.